package com.zmn.oms.third.baidu_app.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.ToString;

/**
 * 百度小程序获取token 应答定义
 *
 * @author xiewenbing
 * @date 2020/08/31
 */
@Data
@ToString
public class BaiduAppGetTokenResponse {

    /**
     * access token
     */
    @JSONField(name = "access_token")
    private String accessToken;

    /**
     * 有效期限
     */
    @JSONField(name = "expires_in")
    private Long expiresIn;

    /**
     * refresh token
     */
    @JSONField(name = "refresh_token")
    private String refreshToken;

    /**
     * 固定为"smartapp_snsapi_base"
     */
    private String scope;

    /**
     * session key
     */
    @JSONField(name = "session_key")
    private String sessionKey;

    /**
     * session secret
     */
    @JSONField(name = "session_secret")
    private String sessionSecret;
}
